﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using static TMS_Master.Enum;

namespace TMS_Master
{
    /// <summary>
    /// /承运
    /// </summary>
    public class CarrierExamineCreateUpdateDto
    {
        [Required]
        public string Number { get; set; }//编号
        [Required]
        public string Title { get; set; }//标题
        [Required]
        public string Organization { get; set; }//单位
        [Required]
        public string Person { get; set; }//负责人
        [Required]
        public string Route { get; set; }//线路
        [Column(TypeName = "decimal(18,2)")]
        public decimal TonPrice { get; set; } = 0;//吨运价
        [Required]
        public int Ton { get; set; }//条件吨位
        [Required]
        public int Price { get; set; }//包车金额
        [Required]
        [DataType(DataType.Date)]
        public DateTime SigningDay { get; set; } = DateTime.Now;//签订日期
        [Required]
        public string Agent { get; set; }//经办人
        [Required]
        [DataType(DataType.Date)]
        public DateTime CreateTime { get; set; } = DateTime.Now;//创建日期
        [Required]
        public CheckEnum CheckType { get; set; } = CheckEnum.Undefined;//状态
        [Required]
        public string CheckPeo { get; set; }//审批人
        [Required]
        public bool IsDel { get; set; } = false;//逻辑删除
    }
}
